<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"><i class="text-muted"></i>昵称:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" value="{$row.nickname}" disabled="true" />
        </div>
    </div>
    <div class="form-group">
        <label for="module" class="control-label col-xs-12 col-sm-2"><i class="text-muted">*</i>手机:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="mobile" name="row[mobile]" value="{$row.mobile}" data-rule="required" />
        </div>
    </div>
    <div class="form-group">
        <label for="content" class="control-label col-xs-12 col-sm-2">*身份:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[role]', ['0'=>'用户','1'=>'分销商', '2'=>'客户经理'],$row['role'])}
        </div>
    </div>

    <div class="form-group">
        <label for="content" class="control-label col-xs-12 col-sm-2">*性别:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[gender]', ['1'=>'男', '0'=>'女'],$row['gender'])}
        </div>
    </div>
    <div class="form-group">
        <label for="point" class="control-label col-xs-12 col-sm-2">*积分:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="point" name="row[point]" value="{$row.point}" data-rule="required:number" />
        </div>
    </div>
    <div class="form-group">
        <label for="product_num" class="control-label col-xs-12 col-sm-2">贷款次数:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" value="{$row.product_num}" disabled="true" />
        </div>
    </div>
    <div class="form-group">
        <label for="goods_num" class="control-label col-xs-12 col-sm-2">兑换次数:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" value="{$row.goods_num}" disabled="true" />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">地区:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" value="<?php echo $row['province'].' '.$row['city'];?>" disabled="true" />
        </div>
    </div>
    <div class="form-group">
        <label for="content" class="control-label col-xs-12 col-sm-2">状态:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['1'=>'正常', '0'=>'锁定'],$row['status'])}
        </div>
    </div>
    <div class="form-group">
        <label for="c-distributor_id" class="control-label col-xs-12 col-sm-2">分销商:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-distributor_id" type="text" data-multiple="false" data-source="{:url('/user/admin.distributor/selectpage')}" data-search-field="nickname" data-show-field="nickname" data-select-to-close-list="false" class="form-control selectpage" data-auto_fill_result="false" data-auto-select-first="false" name="row[distributor_id]" value="{$row['distributor_id'] ? $row['distributor_id'] : ''}" placeholder="关联所属分销商(选填)">
        </div>
    </div>
    <div class="form-group">
        <label for="c-customer_id" class="control-label col-xs-12 col-sm-2">客户经理:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-customer_id" type="text" data-multiple="false" data-data="{:url('/user/admin.customer/selectpage')}" data-select-to-close-list="false" class="form-control selectpage" data-search-field="nickname" data-show-field="nickname" name="row[customer_id]" value="{$row['customer_id'] ? $row['customer_id'] : ''}" data-auto_fill_result="false" data-auto-select-first="false" placeholder="关联所属客户经理(选填)">
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <div class="col-xs-2"></div>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed ">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
